<!DOCTYPE html>  
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN"> 
<head> 
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>卡券商品管理</title>
	<!-- 常规css -->
    <link th:href="@{bootstrap/css/bootstrap.min.css}" rel="stylesheet" />
    <link th:href="@{font-awesome/css/font-awesome.min.css}" rel="stylesheet" />
    <!-- 项目css -->
    <link th:href="@{css/layout.css}" rel="stylesheet" />
</head> 
<body th:with="asort=${#httpServletRequest.getParameter('sort')}, aorder=${#httpServletRequest.getParameter('order')}, num=${data.num}, pageIndex=${data.pageIndex}">
	<!-- 侧边导航栏 -->
	<div th:replace="aframe::sideNavigation"></div>
	
	<!-- 主页面 -->
	<div class="content" style="padding:0">
		<!-- 顶部导航栏 -->
		<div th:replace="aframe::topNavigation"></div>
		<!-- 内容 -->

		<!-- 标签页内容 -->
		<div role="tabpanel" class="tab-pane active" id="history" style="margin:20px">
			<div class="panel panel-default" >
				<div class="panel-heading">
					<h4>卡券商品&nbsp;&nbsp;
						<span><button class="btn btn-sm btn-success" th:onclick="showAdd()">添加商品</button></span>
					</h4>
				</div>
				<div class="panel-body table-responsive">
					<table class="table table-hover">
						<thead>
						<tr>
							<th th:if="${asort != 1+''}"><a th:href="@{goodsTicket(sort=1,order=1,pageIndex=1,num=${num})}">编号<i class="fa fa-fw fa-sort"></i></a></th>
							<th th:if="${asort == 1+'' && aorder == 1+''}"><a th:href="@{goodsTicket(sort=1,order=-1,pageIndex=1,num=${num})}">编号<i class="fa fa-fw fa-sort-asc"></i></a></th>
							<th th:if="${asort == 1+'' && aorder == -1+''}"><a th:href="@{goodsTicket(sort=1,order=1,pageIndex=1,num=${num})}">编号<i class="fa fa-fw fa-sort-desc"></i></a></th>
							<th>商品名</th>
							<th>图片</th>
							<th>类目</th>
							<th>有效期</th>
							<th th:if="${asort != 2+''}"><a th:href="@{goodsTicket(sort=2,order=1,pageIndex=1,num=${num})}">价格<i class="fa fa-fw fa-sort"></i></a></th>
							<th th:if="${asort == 2+'' && aorder == 1+''}"><a th:href="@{goodsTicket(sort=2,order=-1,pageIndex=1,num=${num})}">价格<i class="fa fa-fw fa-sort-asc"></i></a></th>
							<th th:if="${asort == 2+'' && aorder == -1+''}"><a th:href="@{goodsTicket(sort=2,order=1,pageIndex=1,num=${num})}">价格<i class="fa fa-fw fa-sort-desc"></i></a></th>
							<th th:if="${asort != 3+''}"><a th:href="@{goodsTicket(sort=3,order=1,pageIndex=1,num=${num})}">库存<i class="fa fa-fw fa-sort"></i></a></th>
							<th th:if="${asort == 3+'' && aorder == 1+''}"><a th:href="@{goodsTicket(sort=3,order=-1,pageIndex=1,num=${num})}">库存<i class="fa fa-fw fa-sort-asc"></i></a></th>
							<th th:if="${asort == 3+'' && aorder == -1+''}"><a th:href="@{goodsTicket(sort=3,order=1,pageIndex=1,num=${num})}">库存<i class="fa fa-fw fa-sort-desc"></i></a></th>
							<th th:if="${asort != 4+''}"><a th:href="@{goodsTicket(sort=4,order=1,pageIndex=1,num=${num})}">销量<i class="fa fa-fw fa-sort"></i></a></th>
							<th th:if="${asort == 4+'' && aorder == 1+''}"><a th:href="@{goodsTicket(sort=4,order=-1,pageIndex=1,num=${num})}">销量<i class="fa fa-fw fa-sort-asc"></i></a></th>
							<th th:if="${asort == 4+'' && aorder == -1+''}"><a th:href="@{goodsTicket(sort=4,order=1,pageIndex=1,num=${num})}">销量<i class="fa fa-fw fa-sort-desc"></i></a></th>
							<th>商家</th>
							<th th:if="${asort != 5+''}"><a th:href="@{goodsTicket(sort=5,order=1,pageIndex=1,num=${num})}">入库时间<i class="fa fa-fw fa-sort"></i></a></th>
							<th th:if="${asort == 5+'' && aorder == 1+''}"><a th:href="@{goodsTicket(sort=5,order=-1,pageIndex=1,num=${num})}">入库时间<i class="fa fa-fw fa-sort-asc"></i></a></th>
							<th th:if="${asort == 5+'' && aorder == -1+''}"><a th:href="@{goodsTicket(sort=5,order=1,pageIndex=1,num=${num})}">入库时间<i class="fa fa-fw fa-sort-desc"></i></a></th>
							<th th:if="${asort != 6+''}"><a th:href="@{goodsTicket(sort=6,order=1,pageIndex=1,num=${num})}">修改时间<i class="fa fa-fw fa-sort"></i></a></th>
							<th th:if="${asort == 6+'' && aorder == 1+''}"><a th:href="@{goodsTicket(sort=6,order=-1,pageIndex=1,num=${num})}">修改时间<i class="fa fa-fw fa-sort-asc"></i></a></th>
							<th th:if="${asort == 6+'' && aorder == -1+''}"><a th:href="@{goodsTicket(sort=6,order=1,pageIndex=1,num=${num})}">修改时间<i class="fa fa-fw fa-sort-desc"></i></a></th>
							<th>操作</th>
						</tr>
						</thead>
						<tbody>
						<tr th:each="good: ${data.list}">
							<th scope="row" th:text="${good?.goodsId}">编号</th>
							<td th:text="${good?.goodsName}">商品名</td>

							<td><button type="button" class="btn btn-default btn-sm" th:text="查看" data-toggle="modal" th:data-target="'#showImgModal'+${good?.goodsId}"></button></td>
							<!-- 图片显示模态框 -->
							<div class="modal fade text-center" th:id="'showImgModal'+${good?.goodsId}">
								<div class="modal-dialog modal-lg" style="display: inline-block; max-height: 800px; width: auto;">
									<div class="modal-content">
										<img th:src="${good?.goodsPic}" style="max-height: 820px">
									</div>
								</div>
							</div>

							<div th:switch="${good?.goodsType}">
								<td th:case="0">不限</td>
								<td th:case="1">食品/保健类</td>
								<td th:case="2">服饰类</td>
								<td th:case="3">皮具箱包类</td>
								<td th:case="4">珠宝饰品类</td>
								<td th:case="5">母婴/儿童类</td>
								<td th:case="6">家电类</td>
								<td th:case="7">数码类</td>
								<td th:case="8">汽车配件类</td>
								<td th:case="9">家具/建材类</td>
								<td th:case="10">图书影音类</td>
							</div>
							<td th:text="${good.ticketTimespan eq -1} ? '永久' : ${good?.ticketTimespan}+'天'">有效期</td>
							<td th:text="${good?.goodsPrice}">价格</td>
							<td th:text="${good?.goodsStock}">库存</td>
							<td th:text="${good?.goodsSales}">销量</td>
							<td th:text="${good?.shopName}">商家</td>
							<td th:text="${#dates.format(good?.goodsTime, 'yyyy-MM-dd')}">录入时间</td>
							<td th:text="${#dates.format(good?.modifyTime, 'yyyy-MM-dd')}">修改时间</td>
							<td>
								<button class="btn btn-sm btn-info" th:onclick="showDetail([[${good?.goodsId}]])">查看</button>
								<button class="btn btn-sm btn-info" th:onclick="showSales([[${good?.goodsId}]])">销售额</button>
								<button class="btn btn-sm btn-primary"  th:onclick="showEdit([[${good?.goodsId}]])">编辑</button>
								<button class="btn btn-sm btn-primary"  th:onclick="showText([[${good?.goodsId}]])">详情</button>
								<button class="btn btn-sm btn-warning"  th:onclick="showUnder([[${good?.goodsId}]])">下架</button>
								<button class="btn btn-sm btn-danger"  th:onclick="showDelete([[${good?.goodsId}]])">删除</button>
							</td>
						</tr>
						</tbody>
					</table>

					<!-- 分页 -->
					<div th:replace="aframe::pagingBar"></div>

				</div>
			</div>
		</div>
	</div>
		<!-- end 内容 -->
	<!-- end 主页面 -->

	<!-- 模态框: 信息 -->
	<form class="form-horizontal" role="form" id="detailForm" style="margin: 20px;">
		<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="detailModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h4 class="modal-title" id="detailModalLabel"> 商品信息 </h4>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<label class="col-sm-3 control-label">商品名称</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_goodsName"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商品参数</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_goodsParam"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商品类目</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_goodsType"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商品图片</label>
							<div class="col-sm-7">
								<img class="form-control-static" id="d_goodsPic" alt="商品图片" style="height:100px;max-height: 100px">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商品价格</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_goodsPrice"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">卡券描述</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_ticketDesc"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">使用规则</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_ticketRule"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">有效时长</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_ticketTimespan"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商品库存</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_goodsStock"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商品销量</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_goodsSales"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商家名称</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_shopName"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商品地址</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_goodsAddr"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">加入时间</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_goodsTime"></p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">修改时间</label>
							<div class="col-sm-7">
								<p class="form-control-static" id="d_modifyTime"></p>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					</div>
				</div>
			</div>
		</div>
	</form>

	<!-- 模态框: 编辑 -->
	<form class="form-horizontal" role="form" id="editForm" style="margin: 20px;">
		<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editModalLabel" aria-hidden="true">
			<div class="modal-dialog modal-lg">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h4 class="modal-title" id="editModalLabel"> 商品编辑 </h4>
					</div>
					<div class="modal-body" style="height: 480px">
						<div class="col-sm-6">
							<div class="form-group">
								<input type="hidden" name="goodsId" id="e_goodsId">
								<label class="col-sm-3 control-label">商品名称</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="e_goodsName" name="goodsName" placeholder="请输入商品名称">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品参数</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="e_goodsParam" name="goodsParam" placeholder="请输入商品参数">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">选择类目</label>
								<div class="col-sm-7">
									<select name="goodsType" id="e_goodsType" class="form-control">
										<option value="0">不限</option>
										<option value="1">食品/保健类</option>
										<option value="2">服饰类</option>
										<option value="3">皮具箱包类</option>
										<option value="4">珠宝饰品类</option>
										<option value="5">母婴/儿童类</option>
										<option value="6">家电类</option>
										<option value="7">数码类</option>
										<option value="8">汽车配件类</option>
										<option value="9">家具/建材类</option>
										<option value="10">图书影音类</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">选择商家</label>
								<div class="col-sm-7">
									<select name="shopId" id="e_shopId" class="form-control">
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品价格</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="e_goodsPrice" name="goodsPrice" placeholder="请输入商品价格">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品库存</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="e_goodsStock" name="goodsStock" placeholder="请输入商品库存">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">卡券描述</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="e_ticketDesc" name="ticketDesc" placeholder="请输入卡券描述">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">使用规则</label>
								<div class="col-sm-7">
									<textarea type="text" class="form-control" id="e_ticketRule" name="ticketRule" placeholder="请输入使用规则"></textarea>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">有效期(天)</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="e_ticketTimespan" name="ticketTimespan" placeholder="请输入有效时长, 永久为-1">
								</div>
							</div>
						</div>
						<div class="col-sm-6">
							<div class="form-group">
								<label class="col-sm-3 control-label">商品图片</label>
								<div class="col-sm-7">
									<input type="file" class="form-control" id="goodsPic" name="file" placeholder="请上传商品图片">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品地址</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id='e_address' name="goodsAddr" placeholder="请输入地址或点击地图选择" >
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">经纬度</label>
								<div class="col-sm-7">
									<input readonly type="text" class="form-control" id='e_lnglat' name="lnglat" placeholder="点击按钮获取经纬度" >
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"></label>
								<div class="col-sm-7">
									<input id="geoButton" type="button" class="btn" value="获取经纬度" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"></label>
								<div class="col-sm-7">
									<div id="mapContainer" style="width: 230px; height: 230px; "></div>
								</div>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
						<button type="button" class="btn btn-primary" id="editButton">确认修改</button>
					</div>
				</div>
			</div>
		</div>
	</form>

	<!-- 模态框: 添加 -->
	<form class="form-horizontal" role="form" id="addForm" style="margin: 20px;">
		<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="addModalLabel" aria-hidden="true">
			<div class="modal-dialog modal-lg">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h4 class="modal-title" id="addModalLabel"> 添加商品 </h4>
					</div>
					<div class="modal-body" style="height: 525px">
						<div class="col-sm-6">
							<div class="form-group">
								<input type="hidden" name="goodsId" id="a_goodsId">
								<label class="col-sm-3 control-label">商品名称</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="a_goodsName" name="goodsName" placeholder="请输入商品名称">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品参数</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="a_goodsParam" name="goodsParam" placeholder="请输入商品参数">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">选择类目</label>
								<div class="col-sm-7">
									<select name="goodsType" id="a_goodsType" class="form-control">
										<option value="0">不限</option>
										<option value="1">食品/保健类</option>
										<option value="2">服饰类</option>
										<option value="3">皮具箱包类</option>
										<option value="4">珠宝饰品类</option>
										<option value="5">母婴/儿童类</option>
										<option value="6">家电类</option>
										<option value="7">数码类</option>
										<option value="8">汽车配件类</option>
										<option value="9">家具/建材类</option>
										<option value="10">图书影音类</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">选择商家</label>
								<div class="col-sm-7">
									<select name="shopId" id="a_shopId" class="form-control">
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品价格</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="a_goodsPrice" name="goodsPrice" placeholder="请输入商品价格">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品库存</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="a_goodsStock" name="goodsStock" placeholder="请输入商品库存">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">卡券描述</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="a_ticketDesc" name="ticketDesc" placeholder="请输入卡券描述">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">使用规则</label>
								<div class="col-sm-7">
									<textarea type="text" class="form-control" id="a_ticketRule" name="ticketRule" placeholder="请输入使用规则"></textarea>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">有效期(天)</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id="a_ticketTimespan" name="ticketTimespan" placeholder="请输入有效时长, 永久为-1">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">是否上架</label>
								<div class="col-sm-7">
									<select name="isUpper" id="a_isUpper" class="form-control">
										<option value="0">暂不上架</option>
										<option value="1">立即上架</option>
									</select>
								</div>
							</div>
						</div>
						<div class="col-sm-6">
							<div class="form-group">
								<label class="col-sm-3 control-label">商品图片</label>
								<div class="col-sm-7">
									<input type="file" class="form-control" id="a_goodsPic" name="file" placeholder="请上传商品图片">
								</div>
							</div>
							<p style="margin-left: 15px; color: #49586e">（若不填写商品地址与经纬度，则自动设置为店铺的）</p>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品地址</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" id='a_address' name="goodsAddr" placeholder="请输入地址或点击地图选择" >
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">经纬度</label>
								<div class="col-sm-7">
									<input readonly type="text" class="form-control" id='a_lnglat' name="lnglat" placeholder="点击按钮获取经纬度" >
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"></label>
								<div class="col-sm-7">
									<input id="a_geoButton" type="button" class="btn" value="获取经纬度" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"></label>
								<div class="col-sm-7">
									<div id="a_mapContainer" style="width: 230px; height: 230px; "></div>
								</div>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
						<button type="button" class="btn btn-primary" id="addButton">确认添加</button>
					</div>
				</div>
			</div>
		</div>
	</form>

	<!-- 模态框: 编辑商品详情 -->
	<form class="form-horizontal" role="form" style="margin: 20px;">
		<div class="modal fade" id="textModal" tabindex="-1" role="dialog" aria-labelledby="textModalLabel" aria-hidden="true">
			<div class="modal-dialog modal-lg">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h4 class="modal-title" id="textModalLabel"> 详情编辑 </h4>
					</div>
					<div class="modal-body">
						<div id="wang_toolbar" class="toolbar">
						</div>
						<div style="padding: 3px 0; color: #ccc"></div>
						<div id="wang_text" class="text" style="height: 600px">
						</div>
						<input type="hidden" name="goodsId" id="t_goodsId">
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
						<button type="button" class="btn btn-primary" id="textButton">确认修改</button>
					</div>
				</div>
			</div>
		</div>
	</form>


	<!-- 模态框: 查看销量 -->
	<form class="form-horizontal" role="form" id="salesForm" style="margin: 20px;">
		<div class="modal fade" id="salesModal" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h4 class="modal-title"> 销售额 </h4>
					</div>
					<div class="modal-body">
						<fieldset>
							<legend>概览</legend>
							<div class="form-group">
								<label class="col-sm-3 control-label">商品名称</label>
								<div class="col-sm-7">
									<p class="form-control-static" id="s_name"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">年销售额</label>
								<div class="col-sm-7">
									<p class="form-control-static" id="s_yearSale"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">月销售额</label>
								<div class="col-sm-7">
									<p class="form-control-static" id="s_monthSale"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">周销售额</label>
								<div class="col-sm-7">
									<p class="form-control-static" id="s_weekSale"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">日销售额</label>
								<div class="col-sm-7">
									<p class="form-control-static" id="s_daySale"></p>
								</div>
							</div>
						</fieldset>

						<fieldset>
							<legend>时间段查询</legend>
							<div class="form-group">
								<label class="col-sm-3 control-label">开始时间</label>
								<input type="hidden" name="goodsId" id="s_id">
								<div class="col-sm-7">
									<input type="datetime-local" class="form-control" name="begin">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">截止时间</label>
								<div class="col-sm-7">
									<input type="datetime-local" class="form-control" name="end">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">销售额</label>
								<div class="col-sm-7">
									<p class="form-control-static" id="s_sale"></p>
								</div>
							</div>
						</fieldset>

					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
						<button type="button" class="btn btn-primary" id="saleButton">查询</button>
					</div>
				</div>
			</div>
		</div>
	</form>

	<!-- 模态框: 修改密码 -->
	<div th:replace="aframe::modifyPwd"></div>


<!-- 常规js -->
<script th:src="@{js/jquery-3.4.1.min.js}"></script>
<script th:src="@{bootstrap/js/bootstrap.min.js}"></script>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=def65cfd4497e391200c2796f73f7435&plugin=AMap.Geocoder"></script>
<!-- 富文本编辑器js -->
<script type="text/javascript" th:src="@{wangEditor/release/wangEditor.min.js}"></script>
<!-- 模板js -->
<script th:replace="aframe::js-highlight"></script>
<!-- 项目js -->
<script th:src="@{js/md5.js}"></script>
<script th:src="@{js/setpwd.js}"></script>
<!-- 页面js -->
<script th:src="@{js/goodsTicket.js}"></script>

<script type="text/javascript">
	var E = window.wangEditor;
	var editor = new E('#wang_toolbar','#wang_text');
	editor.customConfig.zIndex = 100;
	editor.customConfig.menus = [
		'head',  // 标题
		'bold',  // 粗体
		'fontSize',  // 字号
		'fontName',  // 字体
		'italic',  // 斜体
		'underline',  // 下划线
		'strikeThrough',  // 删除线
		'foreColor',  // 文字颜色
		'backColor',  // 背景颜色
		'link',  // 插入链接
		'list',  // 列表
		'justify',  // 对齐方式
		'quote',  // 引用
		'table',  // 表格
		'image',  // 插入图片
		'emoticon',  // 表情
		'undo',  // 撤销
		'redo'  // 重复
	];
	// 配置服务器端地址
	editor.customConfig.uploadImgServer = 'upload/picture';
	editor.customConfig.uploadImgMaxSize = 20 * 1024 * 1024;
	editor.customConfig.uploadImgTimeout = 50000;
	editor.customConfig.uploadImgMaxLength = 5;
	editor.customConfig.uploadFileName = 'file';
	editor.customConfig.customAlert = function () {
		alert('上传图片失败')
	}
	editor.create();
</script>

</body>
</html> 

